package com.kert.task;

import com.kert.service.RyBakService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
@EnableScheduling
@Async
public class RyTask {
    @Autowired
    private RyBakService ryBakService;

    @Scheduled(cron = "0/1 * * * * ?")
    public void bak(){
        System.out.println(System.currentTimeMillis());
        //ryBakService.insert();
    }
}
